var dom = this;
//alert(location.pathname);
var contextPath;
if (this.top != this) {
    alert("未登录或登录超时!请重新登录");
}
window.top.location.href = "/gtimp/login.do";

function getContextPath() {
    var pathName = document.location.pathname;
    var index = pathName.substr(1).indexOf("/");
    var result = pathName.substr(0, index + 1);
    return result;
}